package com.ruoyi.chatrecord.controller;

import com.ruoyi.chatrecord.service.ChatRecordService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WaKy
 * @version 1.0
 */
@RestController
@RequestMapping("/record")
@Tag(name = "聊天记录", description = "聊天记录API")
public class ChatRecordController {
    @Autowired
    private ChatRecordService chatRecordService;

    @GetMapping("/all")
    public AjaxResult getAll() {
        return chatRecordService.getAll();
    }

}
